home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT SOURCECONTROL.SCRIPT < prev    next >
Encoding:
Text File  |  2001-03-06  |  784 b   |  30 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2000 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: Project 
  8. @Property: sourceControl - contains the name of the
  9. source control scripts to use. This should be valid folder name in the 
  10. in the Tools/Source Control folder. If this is empty then no
  11. Souce Control will be activated for the project. All packages
  12. in a project will use the same source control.
  13. @Syntax: project.sourceControl
  14. @Summary: sourceControl - contains the name of the Source Control scripts 
  15. */
  16.  
  17.  
  18. function DoCommand()
  19. {
  20.   var editor = getActiveEditor();
  21.   if (editor)
  22.   {
  23.     var selection = editor.getSelection();
  24.         editor.replace("project.sourceControl", selection);
  25.         editor.setActive("Insert project.sourceControl");
  26.   }
  27. }
  28.  
  29. !!/Script
  30.